<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>这是idea-tomcat web application</h1>
<a href="testservlet">test</a>
<form action="testservlet" method="post">
    用户名:<input type="text" name="username"><br>
    爱好:<input type="checkbox" name="love" value="足球1">足球
    <input type="checkbox" name="love" value="排球1">排球
    <input type="checkbox" name="love" value="羽毛球1">羽毛球
    <input type="submit" value="submit">
</form>
</body>
</html>